/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86183
 * Date: 2022-10-04
 * Time: 9:57
 */

//interface IFlying{
//    void Flying();
//}
interface IRunning{
    void Running();
}
interface ISwimming{
    void swimming();
}
interface IAmphibian extends ISwimming,IRunning{

}
class Duck  implements IAmphibian{
    public String name;
    public Duck (String name){
       this.name = name;
    }

//    @Override
//    public void Flying() {
//        System.out.println(this.name+"天上飞");
//    }

    @Override
    public void Running() {
        System.out.println(this.name+"地上跑");
    }

    @Override
    public void swimming() {
        System.out.println(this.name+"水里游");
    }
}
public class Test {
    public static void main(String[] args) {
      Duck d = new Duck("白糖");
      d.Running();
      d.swimming();
    }
}
